def fact(x):
    total = 1
    for i in range(1, x+1):
        total *= i
    return total


print(fact(1))
print(fact(2))
print(fact(3))
print(fact(4))
print(fact(5))
